// 鸟类类
class Bird extends Animal implements Fly,Swim,LayEgg{

    public Bird() {
    }

    public Bird(String animalType, int age) {
        super(animalType, age);
    }

    @Override
    public void eat(String s) {
        System.out.println(getAge() + "岁的" + getAnimalType() + "吃" + s);
    }

    @Override
    public void fly() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"在天空飞翔");
    }

    @Override
    public void swim() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"游泳");
    }

    @Override
    public void layEgg() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"下了蛋");
    }
}
